<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>Welcome to Student Info</h1>
<h2>Student List</h2>
<table>
  <tr>
    <th>ID</th>
    <th>学号</th>
    <th>姓名</th>
    <th>身份证</th>
    <th>班级</th>
    <th>宿舍</th>
    <th>班主任</th>

  </tr>
  <tr th:each="student : ${students}">
    <td th:text="${student.getId()}"></td>
    <td th:text="${student.getSId()}"></td>
    <td th:text="${student.getSName()}"></td>
    <td th:text="${student.getSPid()}"></td>
    <td th:text="${student.getSClass()}"></td>
    <td th:text="${student.getSRoomInfo()}"></td>
    <td th:text="${student.getSTeacher()}"></td>
  </tr>
  </table>
</body>
</html>